/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __5A0327AB_AE21_4057_9BCA_520D9EC7DDB2__
#define __5A0327AB_AE21_4057_9BCA_520D9EC7DDB2__

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace xos
{

    class spin
    {
    public:
        spin();
        ~spin();

    protected:
        CRITICAL_SECTION m_sec;

    public:
        int un_lock();
        int lock();
    };

} // xos

#endif // __5A0327AB_AE21_4057_9BCA_520D9EC7DDB2__
